package com.team.recruitment_management_system.pojo.dto.user;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
@Schema(description = "添加个人信息")
public class AddUserInfoDto {
    @Schema(description = "真实姓名")
    @NotEmpty(message = "真实姓名不能为空")
    private String name;

    @Schema(description = "头像")
    @NotEmpty(message = "头像不能为空")
    private String avatar;

    @Schema(description = "电话")
    @NotEmpty(message = "电话不能为空")
    @Length(min=11,max=11,message = "输入正确的电话号码")
    private String phone;

}
